cmake_minimum_required(VERSION 3.25)
project("opengl_template")
# 引入头文件
include_directories("./include")
# 链接库
link_directories("./lib")
# 匹配src目录下对应后缀文件并将其路径存储到src_dir环境变量中
file(GLOB_RECURSE src_dir 
"./src/*.c" 
"./src/*.cpp" 
"./src/*.h"
)

add_executable(${PROJECT_NAME} ${src_dir})

target_link_libraries(${PROJECT_NAME}
glfw3
openGL32
)